<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>

  <script type="text/javascript">
  $(function () {
    $.post('/niitproject/getrecommend', function (data) {
      // 假设 data 是一个用户对象的数组
      data.forEach(function(user) {
        // 创建一个表格行，并插入用户的信息
        var row = '<tr><td>' + user.name + '</td><td>' + user.recommend + '</td></tr>';
        $('#recommend').append(row);
      });
    });
  });
</script>
</head>
<body>
<form method="post" action="" id="listform">
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 学生列表</strong> <a href="" style="float:right; display:none;">添加字段</a></div>
    <div class="padding border-bottom">
    </div>
    <table class="table table-hover text-center" id="recommend">
      <tr>
        <th width="10%">姓名</th>
        <th>相似学生推荐</th>
      </tr>
      <tbody id="tb"></tbody>
      <tr>
        <td colspan="8"><div class="pagelist"> <a href="">上一页</a> <span class="current">1</span><a href="">2</a><a href="">3</a><a href="">下一页</a><a href="">尾页</a> </div></td>
      </tr>
    </table>
  </div>
</form>
<script type="text/javascript">

//搜索




</script>
</body>
</html>